package com.aixingfu.sports.Adapter;

import android.content.Context;
import android.support.annotation.Nullable;

import com.aixingfu.sports.R;
import com.aixingfu.sports.bean.PaymentBean;
import com.aixingfu.sports.ui.activity.PaymentActivity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.ArrayList;
import java.util.List;

/**
 * Author : lv
 * Time : 2019.05.13 0011
 * Description :
 */
public class PaymetAdapter extends BaseQuickAdapter<PaymentBean, BaseViewHolder> {

    private Context context;

    public PaymetAdapter(int layoutResId, @Nullable List<PaymentBean> data) {
        super(layoutResId, data);
    }

    public PaymetAdapter(Context context, int layoutResId, @Nullable List<PaymentBean> data) {
        super(layoutResId, data);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, PaymentBean item) {
    helper.addOnClickListener(R.id.ll_payment_method)
    .setText(R.id.tv_payment_method,item.getPayment())
    .setText(R.id.ed_money,item.getPrice());
    }
}
